﻿//using Kingdee.BOS.App.Data;
//using Kingdee.BOS.Core.DynamicForm.PlugIn;
//using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
//using Kingdee.BOS.JSON;
//using Kingdee.BOS.Orm.DataEntity;
//using Kingdee.BOS.Util;
//using Newtonsoft.Json;
//using Newtonsoft.Json.Linq;
//using System;
//using System.Collections.Generic;
//using System.ComponentModel;
//using System.Data;
//using System.Linq;
//using System.Text;

//namespace WSDZ.KM.ZH.PrdHangUp
//{
//    [Description("生产订单行挂起"), HotUpdate]
//    public class PrdHangUp : AbstractOperationServicePlugIn
//    {
//        public string logType { get; set; } = "生产订单行挂起";
//        public override void AfterExecuteOperationTransaction(AfterExecuteOperationTransaction e)
//        {
//            base.AfterExecuteOperationTransaction(e);
//            List<int> IdList = e.DataEntitys.Select(x => x["Id"].ToStringV1().ToInt32V1()).Distinct().Where(y => y != 0).ToList();
//            if (IdList == null || IdList.Count < 1)
//                return;
//            Main(IdList);
//        }
//        public void Main(List<int> IdList)
//        {
//            int size = 5000;
//            int icount = IdList.Count <= size ? 1 : IdList.Count % size > 0 ? IdList.Count / size + 1 : IdList.Count / size;
//            for (int i = 0; i < icount; i++)
//            {
//                List<int> ids = IdList.Skip(i * size).Take(size).ToList();
           
            
//            }
      

//        }
        
//    }

//}
